#include "Catch2.v3/catch_amalgamated.hpp"
#include "NetWork/Log.h"

#include <thread>

TEST_CASE("NetWork::Log") {
    auto& log = NetWork::Log::Instance();

    log.Write(NetWork::LogLevel::Log, "hello world! %d", 1);
    log.Write(NetWork::LogLevel::Warning, "hello world! %s", "abcde");
    log.Write(NetWork::LogLevel::Error, "hello world! %f", 1.f);

    NetWork::Log::WriteLog(NetWork::LogLevel::Log, "hello world!!!!!! %d", 100);
    
    std::this_thread::sleep_for(std::chrono::seconds(5));
}